<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>面试管理系统</title>
  <link href="css/plugins/sweetalert/sweetalert.css" rel="stylesheet">
    <script src="js/plugins/sweetalert/sweetalert.min.js"></script>
    	  <!-- 全局js -->
    <script src="js/jquery.min.js?v=2.1.4"></script>
    <script src="js/bootstrap.min.js?v=3.3.6"></script>



    <!-- ECharts -->
    <script src="js/plugins/echarts/echarts-all.js"></script>

    <!-- 自定义js -->
    <script src="js/content.js?v=1.0.0"></script>


    <!-- ECharts demo data -->
    <script src="js/demo/echarts-demo.js"></script>
<script type="text/javascript">  
  
function openwindow(url,name,iWidth,iHeight)  
{  
// url 转向网页的地址  
// name 网页名称，可为空  
// iWidth 弹出窗口的宽度  
// iHeight 弹出窗口的高度  
//window.screen.height获得屏幕的高，window.screen.width获得屏幕的宽  
var iTop = (window.screen.height-30-iHeight)/2; //获得窗口的垂直位置;  
var iLeft = (window.screen.width-10-iWidth)/2; //获得窗口的水平位置;  
window.open(url,name,'height='+iHeight+',,innerHeight='+iHeight+',width='+iWidth+',innerWidth='+iWidth+',top='+iTop+',left='+iLeft+',toolbar=no,menubar=no,scrollbars=auto,resizeable=no,location=no,status=no');  
}  

</script> 
 


  <link rel="shortcut icon" href="favicon.ico"> <link href="css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="css/font-awesome.css?v=4.4.0" rel="stylesheet">

    <link href="css/animate.css" rel="stylesheet">
    <link href="css/style.css?v=4.1.0" rel="stylesheet"> 
<!--<style type="text/css"> 
body,table{ 
font-size:12px; 
} 
body,html{height: 100%;margin: 0;text-align: center;background-color: #fff}
table{ 
table-layout:fixed; 
empty-cells:show; 
border-collapse: collapse; 
margin:0 auto;  
} 
td{ 
height:30px; 
} 
h1{ 
font-family: "微软雅黑";
font-size: 2.5em;
line-height:3em;
padding-left: 2em;
margin: 0;
float: left
} 
.table{ 
border:1px solid #cad9ea; 
	margin-top: 20px

} 
.table th { 
background-repeat:repeat-x; 
height:30px; 
} 
.table td,.table th{ 
border:1px solid #cad9ea; 
padding:0 3em 0; 
} 
.table tr.alter{ 
background-color:#f5fafe; 
} 
	.btna{
    background-color: #0099ff;
    padding: 5px 20px;
    color: #fff;
    text-decoration: blink;
    font-size: 12px;
	}
	.btna:hover{background-color: rgba(0, 153, 255, 0.62)}
	#ClCache{display: none}
	.top{width: 100%;height: 100px;background-color:#1C2B36;color: #fff}
</style> -->
</head>

<body>
<?php
error_reporting(0);
	session_start();
	if(time() - $_SESSION['time'] >1800){
		unset($_SESSION['username']);
unset($_SESSION['passcode']);
unset($_SESSION['userflag']);
		unset($_SESSION['time']);
	}
if(isset($_SESSION['username']))
{
?>
	<div class="wrapper wrapper-content animated fadeInRight">
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>简历列表<small>分类，查找</small></h5>
                        <div class="ibox-tools">
                            
                            
                        </div>
                    </div>
                    <div class="ibox-content">

                        <div id="DataTables_Table_0_wrapper" class="dataTables_wrapper form-inline" role="grid"><table class="table table-striped table-bordered table-hover dataTables-example dataTable" id="DataTables_Table_0" aria-describedby="DataTables_Table_0_info">
                            <thead>
                                <tr role="row"><th class="sorting_asc" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" aria-sort="ascending" aria-label="渲染引擎：激活排序列升序" style="width: 255px;">序号</th><th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" aria-label="浏览器：激活排序列升序" style="width: 451px;">姓名</th><th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" aria-label="平台：激活排序列升序" style="width: 425px;">性别</th><th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" aria-label="引擎版本：激活排序列升序" style="width: 193px;">面试岗位</th><th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" aria-label="CSS等级：激活排序列升序" style="width: 191px;">操作</th></tr>
                            </thead>
                            <tbody>
                            <?php
	
	$_SESSION['time']+600;
	$con = mysql_connect ("localhost","root","root");
            @mysql_select_db("jianli", $con); 
            mysql_query("SET NAMES UTF8");
			 $y=10;
			 if($_GET['page']==''){
			 $page=1;
			 }else{
			 $page=$_GET['page'];
			 }
			 $y_num=($page-1)*10;
 $result = mysql_query("SELECT * FROM LJ_data LIMIT $y_num ,$y");
 
 $num = mysql_num_rows(mysql_query("SELECT * FROM LJ_data"));
	while($row = mysql_fetch_array($result)) 	{
		$id=$row['id'];
		echo '<tr class="gradeA odd">';
	       echo  '<td class="sorting_1">'.$row['id'].'</td>';
			echo '<td class=" ">'.$row['xm'].'</td>';
			echo '<td class=" ">'.$row['xb'].'</td>';
		echo '<td class="center ">'.$row['ypgw'].'</td>';
		
		echo '<td class="center >'.'<div class="btn-group">
                                <button data-toggle="dropdown" class="btn btn-default btn-xs dropdown-toggle" aria-expanded="false">操作 <span class="caret"></span>
                                </button>
                                <ul class="dropdown-menu">
                                    
                                    <li><a href="javascript:void(0);"id="xq'.$id.'" class="btna" data="main_add.php?id='.$id.'">详情</a>
                                    </li>'
                                   .'<script>$(document).ready(function () { $("#xq'.$id.'").click(function(){parent.layer.open({type: 2,title:'."'简历详情',shadeClose: true,shade: 0.8,area: ['60%', '90%'], " .'content:$("#xq'.$id.'").attr("data") });});});</script>'.'
                                    <li class="divider"></li>
                                    <li><a href="main_session.php?action=eit&id='.$id.'">删除</a>
                                    </li>
                                </ul>
                            </div></td></tr>';
} 



	?>
 </tbody>
   </table><div class="row"><div class="col-sm-6"></div><div class="col-sm-6"><div class="dataTables_paginate paging_simple_numbers" id="DataTables_Table_0_paginate"><ul class="pagination"><li class="paginate_button previous " aria-controls="DataTables_Table_0" tabindex="0" id="DataTables_Table_0_previous"><a href="<?php 
   if($page<2){echo "javascript:void(name = '已经是第一页了'); alert(name);";}else{echo "main.php?page=";echo $page-1;}?>">上一页</a></li><li class="paginate_button previous " aria-controls="DataTables_Table_0" tabindex="0" id="DataTables_Table_0_previous"><a>共 <font color="red"><?php echo $num;?></font> 条数据 总计 <font color="red"><?php echo floor($num/$y+1);?></font> 页 当前第 <font color="red"><?php echo $page;?></font> 页</a></li><li class="paginate_button next" aria-controls="DataTables_Table_0" tabindex="0" id="DataTables_Table_0_next"><a href="<?php 
   if($page>floor($num/$y)){echo "javascript:void(name = '已经是最后一页了'); alert(name);";}else{echo "main.php?page=";echo $page+1;}?>">下一页</a></li></ul></div></div></div></div>

                    </div>
                </div>
            </div>
        </div>

    </div>
	
	<div style="
    text-align: center;
    position: absolute;
    bottom: 0;
    left: 40%;
    right: 40%;
">程序开发：@刘继鹏Beta</div>
	<!--
项目名称：在线简历填写+公众号简历状态实时推送查询系统
微信消息接口开发：@刘继鹏Beta
程序开发：@刘继鹏Beta
前端设计:@刘继鹏Beta
MYSQL：@刘继鹏Beta
开发日期：2017/02/13
	-->
<?php
}
	else
{
    exit( ' <script>$(document).ready(function () { swal({title: 
	"抱歉，你还未登录哦！",
                    type: "error"
					
                }, function() {location.href="login.php";});
          
        });
    </script>');
}

  ?>

   

</body>
</html>